using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Security.Permissions;
using System.ComponentModel.Design;

namespace CodeStory.WebControls
{

	[AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
	public class LinkItemCollectionEditor : CollectionEditor
	{
		public LinkItemCollectionEditor(Type type)
			: base(type) {

		}
		protected override bool CanSelectMultipleInstances() {
			return false;
		}

		protected override Type[] CreateNewItemTypes() {
			return new Type[] { typeof(LinkItem), typeof(ScriptItem) };
		}
	}
}
